import request from "@/utils/request";

//登录
export function login(data) {
	return request({
		url: "/login",
		method: "post",
		data: data,
	});
}

export function getInfo(params) {
	return request({
		url: "/index",
		method: "get",
		params,
	});
}

// 退出登录
export function logout(params) {
	return request({
		url: "/logout",
		method: "get",
		params,
	});
}
